//
//  TuiKuanDetailSecondTableViewCell.m
//  JiuJiuShangCheng
//
//  Created by jiujiukeji on 2018/10/11.
//  Copyright © 2018年 jiujiukeji. All rights reserved.
//

#import "TuiKuanDetailSecondTableViewCell.h"

@implementation TuiKuanDetailSecondTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUpUI];
    }
    return self;
}
- (void)setUpUI
{
    self.leftLB = [UILabel labelWithText:@"" textColor:UIColorFromRGB(0x666666) fontSize:13];
    [self.leftLB sizeToFit];
    [self addSubview:self.leftLB];
    [self.leftLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(rateWidth(30));
        make.centerY.equalTo(self);
    }];
    
    self.rightLB = [UILabel labelWithText:@"" textColor:UIColorFromRGB(0x666666) fontSize:13];
    [self.rightLB sizeToFit];
    [self addSubview:self.rightLB];
    [self.rightLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self).offset(-rateWidth(30));
        make.centerY.equalTo(self);
    }];
    self.rightLB.hidden = YES;
    
    UIView *line = [[UIView alloc] init];
    line.backgroundColor = tableViewBgColor;
    [self addSubview:line];
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self);
        make.height.equalTo(@(rateHeight(1)));
    }];
}
@end
